<div class="page table-section none" data-page="financeManageList" id="financeManageList">
	<p class="table-head">
		<label class="table-title">当前位置:融资项目</label>
	</p>
	<p class="table-search none">
		<label for="" class="publishTime">申请时间：</label>
		<input class="field-input Wdate FromTime" type="text" id="applyTimeStart" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false,readOnly:true,maxDate:'#F{$dp.$D(\'applyTimeEnd\',{d:0})}'})" /> --
		<input class="field-input Wdate ToTime" type="text" id="applyTimeEnd" name="publishToTime" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false,readOnly:true,minDate:'#F{$dp.$D(\'applyTimeStart\',{d:1})}'})" />

		<label class="financingCode">融资编号：</label>
		<input class="input-financingCode field-input" type="text" id="financeNumber" placeholder="请输入融资编号" />
		<br/>
		<label class="amount">融资金额：</label>
		<input class="input-amount-from field-input" id="maxAmount" type="text" /> --
		<input class="input-amount-to field-input" id="minAmount" type="text" style="margin-right: 45px;" />
		<label class="financingGoods">融资货物：</label>
		<input class="input-financingGoods field-input" id="commodityName" type="text" placeholder="请输入融资货物" />
		<br />
		<label for="" class="status" style="margin-left: 28px;">状态：</label>
		<select class="sel-recommend  field-input" id="financeState">
			<option value="">全部</option>
			<option value="0">已取消</option>
			<option value="1">审批中</option>
			<option value="2">待确认</option>
			<option value="3">已审批</option>
			<option value="4">审批不通过</option>
			<option value="5">合同已签订</option>
			<option value="6">待验货</option>
			<option value="7">已验货</option>
			<option value="8">待放款</option>
			<option value="9">已收款</option>
			<option value="10">提货审批中</option>
			<option value="11">提货审批不通过</option>
			<option value="12">换货审批中</option>
			<option value="13">换货审批不通过</option>
			<option value="14">提货已审批</option>
			<option value="15">待放货</option>
			<option value="16">放货中</option>
			<option value="17">已签收</option>
			<option value="18">已完成</option>
			<option value="19">已评价</option>
		</select>
		<button class="table-search-button" id="financeSearch">查询</button>
	</p>
	<p>
		<table class="table" cellspacing="0px" cellpadding="0px">
			<tr class="table_title">
				<th class="th1" width="17%">申请时间 | 融资编号</th>
				<th class="th2" width="15%">融资客户</th>
				<th class="th2" width="16%">融资货物</th>
				<th class="th3" width="10%">数量</th>
				<th class="th4" width="11%">申请金额</th>
				<th class="th5" width="14%">融资金额</th>
				<th class="th6" width="10%">订单状态</th>
				<th class="th7" width="5%">操作</th>
			</tr>
			<tbody id="financeListBody"></tbody>

		</table>
		<div class="pagerCon"></div>
		<script type="text/template" id="financeListTpl">
			{@each datas as it}
			<tr class="tr_style table-data" financeId=${it.financeId}>
				<td>
					{@if it.financeType==1}
					<span class="order_status">融资</span> {@else if it.financeType==2}
					<span class="order_status">换货 </span> {@/if} &nbsp;&nbsp;${it.applicationDateTime}
					<br/><span class="order_num">${it.financeNumber}</span>
				</td>
				<td>${it.enterpriseName}</td>
				<td>
					{@each it.bulkstocks as that} ${that.bulkstockName}(${that.specification})
					<br/> {@/each}
				</td>
				<td>
					{@each it.bulkstocks as d} ${d.quantity}(${d.unit})
					<br/> {@/each}
				</td>
				<td>&#65509;${it.applicationAmount}</td>
				<td>&#65509;${it.financeAmount}</td>

				<td>${getValueByKey(30, it.financeState)}</td>
				<td><a href="javascript:void(0)" id="detail">详情</a></td>
			</tr>
			{@/each}
		</script>

		<script type="text/template" id="financeListTpl1">
			{@each datas as it} {@if it.abnormal === 0}
			<tr class="tr_style table-data" financeId=${it.financeId}>
				<td>
					{@if it.financeType==1}
					<span class="order_status">融资</span> {@else if it.financeType==2}
					<span class="order_status">换货 </span> {@/if} &nbsp;&nbsp;${it.applicationDateTime}
					<br/><span class="order_num">${it.financeNumber}</span>
				</td>
				<td>${it.enterpriseName}</td>
				<td>
					{@each it.bulkstocks as that} ${that.bulkstockName}(${that.specification})
					<br/> {@/each}
				</td>
				<td>
					{@each it.bulkstocks as d} ${d.quantity}
					<br/> {@/each}
				</td>
				<td>&#65509;${it.applicationAmount}</td>
				<td>&#65509;${it.financeAmount}</td>

				<td>${getValueByKey(30, it.financeState)}</td>
				<td><a id="detail">详情</a></td>
			</tr>
			{@/if} {@/each}
		</script>
	</p>
</div>